<?php
/*
 * @Homepage for application
 * @verion 1.0
 * @author Roshan
 */
class Application extends base {
	
	protected $_view;
	
	public function __construct() {
		$this->setView ();
	}
	public function run($view = '') {
            
		switch(params::getParam('action')){
                    
                    case 'dashboard':
                        break;
                    
                    case 'register':
                        break;
                    case 'login':
                        break;
                }
                    
                
                
                $this->dispatch();
		
	}
	
	public function dispatch() {
		include current_theme_path () . $this->_view;
	}

}